<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: syslog4cj.impl.message.structured.StructuredSyslogMessage Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacesyslog4cj.html">syslog4cj</a></li><li class="navelem"><a class="el" href="namespacesyslog4cj_1_1impl.html">impl</a></li><li class="navelem"><a class="el" href="namespacesyslog4cj_1_1impl_1_1message.html">message</a></li><li class="navelem"><a class="el" href="namespacesyslog4cj_1_1impl_1_1message_1_1structured.html">structured</a></li><li class="navelem"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1structured_1_1StructuredSyslogMessage.html">StructuredSyslogMessage</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classsyslog4cj_1_1impl_1_1message_1_1structured_1_1StructuredSyslogMessage-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">syslog4cj.impl.message.structured.StructuredSyslogMessage Class Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for syslog4cj.impl.message.structured.StructuredSyslogMessage:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classsyslog4cj_1_1impl_1_1message_1_1structured_1_1StructuredSyslogMessage.png" usemap="#syslog4cj.impl.message.structured.StructuredSyslogMessage_map" alt=""/>
  <map id="syslog4cj.impl.message.structured.StructuredSyslogMessage_map" name="syslog4cj.impl.message.structured.StructuredSyslogMessage_map">
<area href="interfacesyslog4cj_1_1impl_1_1message_1_1structured_1_1StructuredSyslogMessageIF.html" alt="syslog4cj.impl.message.structured.StructuredSyslogMessageIF" shape="rect" coords="0,56,368,80"/>
<area href="interfacesyslog4cj_1_1common_1_1SyslogMessageIF.html" alt="syslog4cj.common.SyslogMessageIF" shape="rect" coords="0,0,368,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a09d7c6da9238d60708c518d514a2db20"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1structured_1_1StructuredSyslogMessage.html#a09d7c6da9238d60708c518d514a2db20">fromString</a> (String syslogMessageStr):<a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1structured_1_1StructuredSyslogMessage.html">StructuredSyslogMessage</a></td></tr>
<tr class="separator:a09d7c6da9238d60708c518d514a2db20"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa95b88d308bea4ab8895e6bcf344b160"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1structured_1_1StructuredSyslogMessage.html#aa95b88d308bea4ab8895e6bcf344b160">matchChar</a> (String data, Int64 start, String chars):?Int64</td></tr>
<tr class="separator:aa95b88d308bea4ab8895e6bcf344b160"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a954c1483b2b6f57c552802ab9bef041f"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1structured_1_1StructuredSyslogMessage.html#a954c1483b2b6f57c552802ab9bef041f">isAsciiPrintable</a> (String value):Bool</td></tr>
<tr class="separator:a954c1483b2b6f57c552802ab9bef041f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a63b67a84116317b187578f5aa7e960"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1structured_1_1StructuredSyslogMessage.html#a4a63b67a84116317b187578f5aa7e960">nilProtect</a> (String value):String</td></tr>
<tr class="separator:a4a63b67a84116317b187578f5aa7e960"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f4d087f2b744b5453c974934a1b6d66"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1structured_1_1StructuredSyslogMessage.html#a3f4d087f2b744b5453c974934a1b6d66">sdEscape</a> (StringBuilder sb, String value)</td></tr>
<tr class="separator:a3f4d087f2b744b5453c974934a1b6d66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3883f1c1bf6e82561e43ab82c59a6f1"><td class="memItemLeft" align="right" valign="top">public&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1structured_1_1StructuredSyslogMessage.html#ab3883f1c1bf6e82561e43ab82c59a6f1">init</a> (String messageId, String procId)</td></tr>
<tr class="separator:ab3883f1c1bf6e82561e43ab82c59a6f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a1ed2be8f068de2108d259a0357ecee"><td class="memItemLeft" align="right" valign="top">public override func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1structured_1_1StructuredSyslogMessage.html#a1a1ed2be8f068de2108d259a0357ecee">createMessage</a> ():String</td></tr>
<tr class="separator:a1a1ed2be8f068de2108d259a0357ecee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acdde1a9f3443c07e1a534f1d9c833840"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1structured_1_1StructuredSyslogMessage.html#acdde1a9f3443c07e1a534f1d9c833840">getMessageId</a> ()</td></tr>
<tr class="separator:acdde1a9f3443c07e1a534f1d9c833840"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6baad6eca75f7f17d9c2acea4173f83a"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1structured_1_1StructuredSyslogMessage.html#a6baad6eca75f7f17d9c2acea4173f83a">getStructuredData</a> ()</td></tr>
<tr class="separator:a6baad6eca75f7f17d9c2acea4173f83a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0147a3d4cdb4fe45665fa28c89e4882"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1structured_1_1StructuredSyslogMessage.html#ae0147a3d4cdb4fe45665fa28c89e4882">getMessage</a> ()</td></tr>
<tr class="separator:ae0147a3d4cdb4fe45665fa28c89e4882"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60700456d1eff7ccaf907c0d638796dd"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1structured_1_1StructuredSyslogMessage.html#a60700456d1eff7ccaf907c0d638796dd">getProcId</a> ()</td></tr>
<tr class="separator:a60700456d1eff7ccaf907c0d638796dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee52eb49e1f0be821a8fe00275184db5"><td class="memItemLeft" align="right" valign="top">public override func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1structured_1_1StructuredSyslogMessage.html#aee52eb49e1f0be821a8fe00275184db5">hashCode</a> ():Int64</td></tr>
<tr class="separator:aee52eb49e1f0be821a8fe00275184db5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43b2355ebf363f1d56562a442f821288"><td class="memItemLeft" align="right" valign="top">public operator override&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1structured_1_1StructuredSyslogMessage.html#a43b2355ebf363f1d56562a442f821288">==</a> (<a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1structured_1_1StructuredSyslogMessage.html">StructuredSyslogMessage</a> right)</td></tr>
<tr class="separator:a43b2355ebf363f1d56562a442f821288"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84eac344f1a1f77a0fe4a9757e2363f0"><td class="memItemLeft" align="right" valign="top">public override func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1structured_1_1StructuredSyslogMessage.html#a84eac344f1a1f77a0fe4a9757e2363f0">toString</a> ()</td></tr>
<tr class="separator:a84eac344f1a1f77a0fe4a9757e2363f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a7c82b93709974c92387eb6c79f1986"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogMessageIF.html#a3a7c82b93709974c92387eb6c79f1986">createMessage</a> ():String</td></tr>
<tr class="separator:a3a7c82b93709974c92387eb6c79f1986"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:ae6af77cfad5e845317fbf4f607618365"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1structured_1_1StructuredSyslogMessage.html#ae6af77cfad5e845317fbf4f607618365">static let EMPTY_STRUCTURED_DATA_PREFIX</a> = &quot;- - &quot;</td></tr>
<tr class="separator:ae6af77cfad5e845317fbf4f607618365"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfe1c3b3bfaf73a96e187bfd0a95037f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1structured_1_1StructuredSyslogMessage.html#abfe1c3b3bfaf73a96e187bfd0a95037f">static let EMPTY_STRUCTURED_DATA_PREFIX_LENGTH</a> = EMPTY_STRUCTURED_DATA_PREFIX.size</td></tr>
<tr class="separator:abfe1c3b3bfaf73a96e187bfd0a95037f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>RFC 5424 结构化 Syslog 消息实现类<br  />
 实现符合 RFC 5424 标准的结构化日志消息格式， 支持消息 ID、结构化数据和消息体三部分。 </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ab3883f1c1bf6e82561e43ab82c59a6f1" name="ab3883f1c1bf6e82561e43ab82c59a6f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3883f1c1bf6e82561e43ab82c59a6f1">&#9670;&#160;</a></span>init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public syslog4cj.impl.message.structured.StructuredSyslogMessage.init </td>
          <td>(</td>
          <td class="paramname"><em>messageId</em>:&#160;</td>
          <td class="paramtype">String, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>procId</em>:&#160;</td>
          <td class="paramtype">String&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>创建结构化消息实例</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">messageId</td><td>消息标识符 </td></tr>
    <tr><td class="paramname">procId</td><td>进程标识符 </td></tr>
    <tr><td class="paramname">structuredData</td><td>结构化数据 </td></tr>
    <tr><td class="paramname">message</td><td>消息体 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a43b2355ebf363f1d56562a442f821288" name="a43b2355ebf363f1d56562a442f821288"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a43b2355ebf363f1d56562a442f821288">&#9670;&#160;</a></span>==()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">    public operator override  syslog4cj.impl.message.structured.StructuredSyslogMessage.== </td>
          <td>(</td>
          <td class="paramname"><em>right</em>:&#160;</td>
          <td class="paramtype">StructuredSyslogMessage</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>比较两个消息是否相等</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">right</td><td>比较对象 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true=消息内容和结构化数据完全相等 </dd></dl>

</div>
</div>
<a id="a1a1ed2be8f068de2108d259a0357ecee" name="a1a1ed2be8f068de2108d259a0357ecee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a1ed2be8f068de2108d259a0357ecee">&#9670;&#160;</a></span>createMessage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public override func syslog4cj.impl.message.structured.StructuredSyslogMessage.createMessage </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: String </td>
        </tr>
      </table>
</div><div class="memdoc">
<p>生成符合 RFC 5424 的消息字符串</p>
<dl class="section return"><dt>Returns</dt><dd>格式化的完整消息 </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">IllegalArgumentException</td><td>消息ID或参数名无效时抛出 </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogMessageIF.html#a3a7c82b93709974c92387eb6c79f1986">syslog4cj.common.SyslogMessageIF</a>.</p>

</div>
</div>
<a id="a09d7c6da9238d60708c518d514a2db20" name="a09d7c6da9238d60708c518d514a2db20"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a09d7c6da9238d60708c518d514a2db20">&#9670;&#160;</a></span>fromString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.impl.message.structured.StructuredSyslogMessage.fromString </td>
          <td>(</td>
          <td class="paramname"><em>syslogMessageStr</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td>: <a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1structured_1_1StructuredSyslogMessage.html">StructuredSyslogMessage</a> </td>
        </tr>
      </table>
</div><div class="memdoc">
<p>从字符串解析结构化 Syslog 消息</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">syslogMessageStr</td><td>符合 RFC 5424 格式的字符串 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>解析后的结构化消息对象 </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">IllegalArgumentException</td><td>格式无效时抛出 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ae0147a3d4cdb4fe45665fa28c89e4882" name="ae0147a3d4cdb4fe45665fa28c89e4882"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0147a3d4cdb4fe45665fa28c89e4882">&#9670;&#160;</a></span>getMessage()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func syslog4cj.impl.message.structured.StructuredSyslogMessage.getMessage </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取消息体（MSG）</p>
<dl class="section return"><dt>Returns</dt><dd>消息内容 </dd></dl>

</div>
</div>
<a id="acdde1a9f3443c07e1a534f1d9c833840" name="acdde1a9f3443c07e1a534f1d9c833840"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acdde1a9f3443c07e1a534f1d9c833840">&#9670;&#160;</a></span>getMessageId()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func syslog4cj.impl.message.structured.StructuredSyslogMessage.getMessageId </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取消息标识符（MSGID）</p>
<dl class="section return"><dt>Returns</dt><dd>消息ID </dd></dl>

</div>
</div>
<a id="a60700456d1eff7ccaf907c0d638796dd" name="a60700456d1eff7ccaf907c0d638796dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a60700456d1eff7ccaf907c0d638796dd">&#9670;&#160;</a></span>getProcId()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func syslog4cj.impl.message.structured.StructuredSyslogMessage.getProcId </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取进程标识符（PROCID）</p>
<dl class="section return"><dt>Returns</dt><dd>进程ID </dd></dl>

</div>
</div>
<a id="a6baad6eca75f7f17d9c2acea4173f83a" name="a6baad6eca75f7f17d9c2acea4173f83a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6baad6eca75f7f17d9c2acea4173f83a">&#9670;&#160;</a></span>getStructuredData()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func syslog4cj.impl.message.structured.StructuredSyslogMessage.getStructuredData </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取结构化数据</p>
<dl class="section return"><dt>Returns</dt><dd>结构化数据映射 </dd></dl>

</div>
</div>
<a id="aee52eb49e1f0be821a8fe00275184db5" name="aee52eb49e1f0be821a8fe00275184db5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee52eb49e1f0be821a8fe00275184db5">&#9670;&#160;</a></span>hashCode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public override func syslog4cj.impl.message.structured.StructuredSyslogMessage.hashCode </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: Int64 </td>
        </tr>
      </table>
</div><div class="memdoc">
<p>计算哈希值</p>
<dl class="section return"><dt>Returns</dt><dd>基于消息内容和结构化数据的哈希值 </dd></dl>

</div>
</div>
<a id="a954c1483b2b6f57c552802ab9bef041f" name="a954c1483b2b6f57c552802ab9bef041f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a954c1483b2b6f57c552802ab9bef041f">&#9670;&#160;</a></span>isAsciiPrintable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.impl.message.structured.StructuredSyslogMessage.isAsciiPrintable </td>
          <td>(</td>
          <td class="paramname"><em>value</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td>: Bool </td>
        </tr>
      </table>
</div><div class="memdoc">
<p>检查字符串是否为可打印 ASCII 字符</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>待检查字符串 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true=全部字符在33-126范围内 </dd></dl>

</div>
</div>
<a id="aa95b88d308bea4ab8895e6bcf344b160" name="aa95b88d308bea4ab8895e6bcf344b160"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa95b88d308bea4ab8895e6bcf344b160">&#9670;&#160;</a></span>matchChar()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.impl.message.structured.StructuredSyslogMessage.matchChar </td>
          <td>(</td>
          <td class="paramname"><em>data</em>:&#160;</td>
          <td class="paramtype">String, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>start</em>:&#160;</td>
          <td class="paramtype">Int64, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>chars</em>:&#160;</td>
          <td class="paramtype">String&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>: ?Int64 </td>
        </tr>
      </table>
</div><div class="memdoc">
<p>在字符串中查找指定字符（跳过转义字符）</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>目标字符串 </td></tr>
    <tr><td class="paramname">start</td><td>起始位置 </td></tr>
    <tr><td class="paramname">chars</td><td>要查找的字符集合 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>匹配位置（未找到返回 None） </dd></dl>

</div>
</div>
<a id="a4a63b67a84116317b187578f5aa7e960" name="a4a63b67a84116317b187578f5aa7e960"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a63b67a84116317b187578f5aa7e960">&#9670;&#160;</a></span>nilProtect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.impl.message.structured.StructuredSyslogMessage.nilProtect </td>
          <td>(</td>
          <td class="paramname"><em>value</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td>: String </td>
        </tr>
      </table>
</div><div class="memdoc">
<p>空值保护（转为 NILVALUE）</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>原始值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>非空值原样返回，空值返回 "-" </dd></dl>

</div>
</div>
<a id="a3f4d087f2b744b5453c974934a1b6d66" name="a3f4d087f2b744b5453c974934a1b6d66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f4d087f2b744b5453c974934a1b6d66">&#9670;&#160;</a></span>sdEscape()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.impl.message.structured.StructuredSyslogMessage.sdEscape </td>
          <td>(</td>
          <td class="paramname"><em>sb</em>:&#160;</td>
          <td class="paramtype">StringBuilder, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>value</em>:&#160;</td>
          <td class="paramtype">String&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>对结构化数据值进行转义</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sb</td><td>字符串构建器 </td></tr>
    <tr><td class="paramname">value</td><td>需要转义的值 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a84eac344f1a1f77a0fe4a9757e2363f0" name="a84eac344f1a1f77a0fe4a9757e2363f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a84eac344f1a1f77a0fe4a9757e2363f0">&#9670;&#160;</a></span>toString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public override func syslog4cj.impl.message.structured.StructuredSyslogMessage.toString </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>转换为字符串表示（同 createMessage()）</p>
<dl class="section return"><dt>Returns</dt><dd>格式化后的消息字符串 </dd></dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ae6af77cfad5e845317fbf4f607618365" name="ae6af77cfad5e845317fbf4f607618365"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae6af77cfad5e845317fbf4f607618365">&#9670;&#160;</a></span>static let EMPTY_STRUCTURED_DATA_PREFIX</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">syslog4cj.impl.message.structured.StructuredSyslogMessage.static let EMPTY_STRUCTURED_DATA_PREFIX = &quot;- - &quot;</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>空结构化数据前缀（表示无结构化数据） </p>

</div>
</div>
<a id="abfe1c3b3bfaf73a96e187bfd0a95037f" name="abfe1c3b3bfaf73a96e187bfd0a95037f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abfe1c3b3bfaf73a96e187bfd0a95037f">&#9670;&#160;</a></span>static let EMPTY_STRUCTURED_DATA_PREFIX_LENGTH</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">syslog4cj.impl.message.structured.StructuredSyslogMessage.static let EMPTY_STRUCTURED_DATA_PREFIX_LENGTH = EMPTY_STRUCTURED_DATA_PREFIX.size</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>空结构化数据前缀长度 </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/impl/message/structured/<a class="el" href="structured__message_8cj.html">structured_message.cj</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6
</small></address>
</body>
</html>
